<template>
	<view class="loop_notice">
		<swiper vertical circular :indicator-dots='false' autoplay :duration='200' :interval="4000">
			<swiper-item v-for="(item,index) in noticeList" :key='index'>
				<view class="loop_notice_item">
					<view>
						<image :src="item.headimgurl" style="width: 100%;" mode="widthFix"></image>
					</view>
					<view>恭喜{{item.nickname}}获得{{item.income}}元红包</view>
				</view>
			</swiper-item>
	
		</swiper>
	</view>
</template>

<script>
	import {
		rankingList
	} from '../../../api/index/index'
	export default{
		data(){
			return {
				noticeList:[]
			}
		},
		methods:{
			async rankingList(){
				const res = await rankingList();
				this.noticeList = res.data;
			}
			
		}
	}
</script>

<style>
</style>
